<% if @saved == true %>
    <% flash[:notice] = "successfully created." %>
    $('#filter_admin').hide();
    $('#admin_title').html("<%=j 'Manage Room Types' %>");
    $('#admin_content').html("<%=j render partial: 'hotel_room_types/index' %>")
    $("#flash_message_wrapper").html("<%=j render partial: 'layouts/flash_messages' %>");
    animateFlashMessages();
<% else %>
    <% flash[:alert] = "Something Error." %>
    $("#flash_message_wrapper").html("<%=j render partial: 'layouts/flash_messages' %>");
    animateFlashMessages();
<% end %>